package com.food.admin.form;

import io.swagger.annotations.ApiModel;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Pattern;

@Data
@ApiModel("新增管理员账号参数对象")
public class AccountInsertForm {
    @NotEmpty
    @Pattern(regexp = "^((13[0-9])|(14[0-9])|(15[0-9])|(17[0-9])|(18[0-9]))\\d{8}$",message = "手机号格式有误")
    private String accountPhone;
}
